﻿using System;

namespace LAB3_Cv
{
    public partial class MainHeadhunter : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
               if (Session["CurrentAdmin"] == null)
            {
                Response.Redirect("~/Default.aspx");
            }  
            }
           
        }

        protected void Logout_ButtonLogOut(object sender, EventArgs e)
        {
            Session["SearchString"] = null;
            Session["CurrentAdmin"] = null;
            Session["AdminId"] = null;
            Session["CurrentUser"] = null;
            Session["Applications"] = null;
            Session["WorkAdId"] = null;
            Session["DeletedAd"] = null;
            Session["SelectedCv"] = null;
            Session["PrintCv"] = null;
            Session["CvList"] = null;
            Response.Redirect("~/Default.aspx");
        }
    }
}